/***
 * R-ZBZB-202109280789713：添加下载图标，增加下载列表页面
 */
import request from "@/utils/request";
export const service = () => {
  return !!JSON.parse(localStorage.$loginInfo).tenantId ? "/event" : "/ttevent";
};
// getUserByTenantIdNew
export function getUserByTenantIdNew(query) {
  return request({
    url: service() + "/video/base/getLeaderByTenantId",
    method: "post",
    data: query,
  });
}
// addLeaderAudit
export function addLeaderAudit(query) {
  return request({
    url: service() + "/alarm/orderleaderaudit/addLeaderAudit",
    method: "post",
    data: query,
  });
}

export function getLeaderByTenantIdShowTree(query) {
  return request({
    url: service() + "/video/base/getLeaderByTenantIdShowTree",
    method: "post",
    data: query,
  });
}
